package com.tingyuge.mapper;

import com.tingyuge.entity.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IRoleMapper {

    @Select("select * from sys_role r\n" +
            "inner join sys_user_role ur on r.id = ur.roleid\n" +
            "where ur.userid =#{uid}")
    List<Role> findRoleByUid(Integer uid);
}
